#include <QPainter>
#include "flight_track_widget.h"
#include "ui_flight_track_widget.h"

Flight_track_widget::Flight_track_widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Flight_track_widget)
{
    ui->setupUi(this);
}

Flight_track_widget::~Flight_track_widget()
{
    delete ui;
}

void Flight_track_widget::paintEvent(QPaintEvent *ev)
{
    Q_UNUSED(ev)

//    QPainter painter(this);
//    QFont font;
//    font.setFamily("Microsoft YaHei");
//    font.setPointSize(50);
//    font.setItalic(true);

//    painter.setFont(font);
//    painter.setBrush(QBrush(QColor(Qt::red)));
//    painter.drawText(rect(), Qt::AlignCenter, "Qt");
//    painter.drawEllipse(100, 200, 3, 3);

//    QWidget::paintEvent(ev);
}
